Skip to content

chore(telemetry): export opentelemetry traces - #388

Merged
icco merged 2 commits into
mainfrom
feat/otel-traces
Nov 17, 2026
Merged

icco merged 2 commits into
mainfrom
feat/otel-traces

Conversation

@icco

@icco icco commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Why

Export request traces over OTLP when OTEL_EXPORTER_OTLP_ENDPOINT is set, so requests can be followed across services.

  • Register @vercel/otel from register() in src/instrumentation.ts
  • Pin @opentelemetry/api to ~1.9.1, the range the OpenTelemetry SDK packages accept

Risks

No Risks Found

Copilot AI balanced review requested due to automatic review settings November 17, 2026 10:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The lockfile resolves @opentelemetry/api to 1.10.0 while six telemetry packages require versions below 1.10.0, leaving unsatisfied peer dependencies.

1 open issue
1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

Adds OpenTelemetry instrumentation to the Next.js application to support server trace export over OTLP when OTEL_EXPORTER_OTLP_ENDPOINT is configured.

Changes:

  • Registers telemetry with the service name natwelch.com.
  • Adds @vercel/otel and locks its OpenTelemetry dependencies.
File Description
src/​instrumentation.ts Adds the Next.js telemetry registration hook.
pnpm-lock.yaml Locks telemetry packages and updates peer dependency resolutions.
package.json Adds @vercel/otel as a runtime dependency.

Review effort: Balanced

Comment thread pnpm-lock.yaml Resolved
@icco icco self-assigned this Nov 17, 2026
@icco
icco merged commit a81d33c into main Nov 17, 2026
5 checks passed
@icco
icco deleted the feat/otel-traces branch November 17, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants